Skip to content

feat(ui): give a page a default scrollbar geometry - #13

Merged
1lck merged 1 commit into
mainfrom
feat/1799/page-bar-style
Nov 12, 2026
Merged

1lck merged 1 commit into
mainfrom
feat/1799/page-bar-style

Conversation

@1lck

@1lck 1lck commented Nov 12, 2026

Copy link
Copy Markdown

页面级默认:PageConfig.BarStyle 会传给该页面声明的每个滚动区,产品只要在 NewPage 设一次,就不必在自己的几十个列表与树上逐一调用 Box.Bars;Box.Bars 仍然可以对单个区域覆盖,零值保持 Viva 自己的几何。go build ./... 与 go test ./ui/ 通过。

A page can now say once how its scrollbars look: PageConfig.BarStyle reaches every
scroll area the page declares, so a product like IDEA's eleven point track with five
point thumbs sets it at NewPage instead of at each of its lists and trees. Box.Bars
still overrides one area, and the zero style keeps Viva's geometry.

Co-Authored-By: AtomCode (deepseek-v4.1-flash) <noreply@atomgit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant